/**
*@author       wuwg
*@createTime   2018/03/20
*@updateTime   2018/03/25
*@description
*@rule
 */
@import '../../../config/config.less';
@import '../../../mixins/input/input-mixins.less';
@import '../input/index.less';

.textarea-error(~"@{css-prefix-form-item}");

//命名空间
@css-prefix-textarea: ~"@{css-prefix}textarea";
.@{css-prefix-textarea} {
  // input style
  .input();
  //  input  wrap
  &-wrapper{
    display: inline-block;
    width: 100%;
    vertical-align: middle;
    line-height: normal
  }
  // Reset height for textarea
  textarea& {
    max-width: 100%;
    height: auto;
    min-height: @input-height-base;
    vertical-align: bottom;
    font-size: @font-size-base;
    word-break: break-all;
    word-wrap: break-word;
    resize: none;
    line-height: normal
  }
}

// textarea 出错提示样式
.textarea-error(@class){
  .@{class}-error{
    .@{css-prefix-textarea} {
      .input-error();
    }
  }
}
